import * as THREE from "three";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader"
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
export default class World {
  mesh
  constructor() {
    // 添加小岛模型
    // 实例化gltf载入库
    this.loader = new GLTFLoader();
    // 实例化draco载入库
    const dracoLoader = new DRACOLoader();
    // 添加draco载入库
    dracoLoader.setDecoderPath("./draco/");
    // 添加draco载入库
    this.loader.setDRACOLoader(dracoLoader);
  }
  getmesh () {
    return this.loader.loadAsync("./model/world.glb", (p) => { })
  }
}
